package com.springcloud.authentication;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 认证中心
 *
 */
@EnableEurekaClient
@SpringBootApplication
public class AuthenticationApp {
	/**
	 * 打包需继承SpringBootServletInitializer类，复写这个方法即可
	 */  
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(AuthenticationApp.class);
	}


	
	public static void main(String[] args) {
		SpringApplication.run(AuthenticationApp.class, args);
	}
}
